import 'package:flutter/material.dart';
import 'package:get/get.dart';

void showSnackbar({
  String title = "提示", // 标题
  required String message, // 显示内容, 必要
  Color backgroundColor = const Color(0xFFBBDEFB), // 背景颜色
  Color textColor = Colors.white, // 文本颜色
  SnackPosition position = SnackPosition.TOP, // 显示位置
  Duration duration = const Duration(seconds: 1),
}) {
  Get.snackbar(
    title,
    message,
    backgroundColor: backgroundColor,
    colorText: textColor,
    snackPosition: position,
  );
}
